home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-01-01 | 1.8 KB | 86 lines | [TEXT/MPS ] |
- //# Copyright: © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
-
- #ifndef _UNDO_
- #define _UNDO_
-
- #ifndef _ODOBJECT_
- #include "ODObject.idl"
- #endif
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface ODUndo;
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface ODPart;
-
-
- //==============================================================================
- // ODUndo
- //==============================================================================
-
- interface ODUndo : ODObject
- {
-
-
- void AddActionToHistory(in ODPart whichPart,
- in ODActionData actionData,
- in ODActionType actionType,
- in ODName undoActionLabel,
- in ODName redoActionLabel);
-
- void Undo();
-
- void Redo();
-
- void MarkActionHistory();
-
- void ClearActionHistory(in ODRespectMarksChoices respectMarks);
-
- void ClearRedoHistory();
-
- ODBoolean PeekUndoHistory(out ODPart part,
- out ODActionData actionData,
- out ODActionType actionType,
- out ODName actionLabel);
-
- ODBoolean PeekRedoHistory(out ODPart part,
- out ODActionData actionData,
- out ODActionType actionType,
- out ODName actionLabel);
-
- void AbortCurrentTransaction();
-
- #ifdef __SOMIDL__
- implementation
- {
- majorversion = 1; minorversion = 0;
-
- functionprefix = ODUndo;
-
- override:
- somUninit;
-
- releaseorder:
- InitUndo,
- AddActionToHistory,
- Undo,
- Redo,
- MarkActionHistory,
- ClearActionHistory,
- ClearRedoHistory,
- PeekUndoHistory,
- PeekRedoHistory,
- AbortCurrentTransaction ;
-
- };
- #endif
- };
-
- #endif // _UNDO_
-